package com.athena.crm.service;

import com.athena.crm.domain.CrmClueFollrecords;
import com.athena.crm.domain.bo.CrmClueFollrecordsAddBo;
import com.athena.crm.domain.vo.CrmClueFollrecordsVo;
import com.athena.crm.domain.bo.CrmClueFollrecordsBo;
import com.athena.common.core.page.TableDataInfo;
import com.athena.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 客户跟进记录Service接口
 *
 * @author ruoyi
 * @date 2023-08-07
 */
public interface ICrmClueFollrecordsService {

    /**
     * 查询客户跟进记录
     */
    CrmClueFollrecordsVo queryById(String id);

    /**
     * 查询客户跟进记录列表
     */
    TableDataInfo<CrmClueFollrecordsVo> queryPageList(CrmClueFollrecordsBo bo, PageQuery pageQuery);

    /**
     * 查询客户跟进记录列表
     */
    List<CrmClueFollrecordsVo> queryList(CrmClueFollrecordsBo bo);

    /**
     * 新增客户跟进记录
     */
    Boolean insertByBo(CrmClueFollrecordsBo bo);

    /**
     * 修改客户跟进记录
     */
    Boolean updateByBo(CrmClueFollrecordsBo bo);

    /**
     * 校验并批量删除客户跟进记录信息
     */
    Boolean deleteWithValidByIds(Collection<String> ids, Boolean isValid);

    /**
     * 添加跟进记录
     * @param bbo
     * @return
     */
    Boolean insertByBbo(CrmClueFollrecordsAddBo bbo);

    /**
     * 批量解锁添加初始化跟进记录
     * @param customerFollrecords
     * @return
     */
    List<CrmClueFollrecords> batchInsertByBo(List<CrmClueFollrecords> customerFollrecords);
}
